﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CurrencyView.aspx.cs" Inherits="CurrencyView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" PostBackUrl="~/CurrencyEdit.aspx?m=liCurrency" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="CurrencyGirdView" CssClass="skineedgrid" runat="server" DataSourceID="CurrencyDS"
        AutoGenerateColumns="false" Width="75%" DataKeyNames="CurrencyID"  AllowSorting="true" >
        <Columns>
            <asp:BoundField DataField="CurrencyID" HeaderText="ID" Visible="False" />
            <asp:BoundField DataField="Currency1" HeaderText="Rate" SortExpression="Currency1" />
            <asp:BoundField DataField="CurrencyType.Name" HeaderText="Type" SortExpression="CurrencyType.Name" />
            <asp:BoundField DataField="CurrencyDate" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Date"
                SortExpression="CurrencyDate" />
            <%--<asp:TemplateField>
                <ItemTemplate>
                    <a href="currencyedit.aspx?id=<%#Eval("CurrencyID") %>&m=liCurrency">რედაქტირება</a>
                </ItemTemplate>
            </asp:TemplateField>--%>
        </Columns>
    </asp:GridView>


    <asp:ObjectDataSource ID="CurrencyDS" runat="server" SelectMethod="GetAll" SortParameterName="sortBy" TypeName="DAL.DBManagers.CurrenciesManager"></asp:ObjectDataSource>
</asp:Content>

